package democmp;

import java.util.Comparator;
/**
 * ClassName AgeComparator
 * Description TODO
 * Author Yanyan
 * Date 2025/11/14 22:40
 * Version 1.0
 */

public class AgeComparator implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return o2.age - o1.age;
    }
}